/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package LogFile;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author tuanna
 */
public class newDate {
    private Date dNow = new Date();
    private final String FORMAT_DATE = "E yyyy.MM.dd 'at' hh:mm:ss a";
    private SimpleDateFormat ft = new SimpleDateFormat(FORMAT_DATE);
    
    @Override
    public String toString(){
        return ft.format(dNow);
    }
    
    public static void main(String[] args){
        /*newDate date = new newDate();
        String str = date.toString();
        System.out.println(str);*/
    }
}
